Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined variable enrollment action in new enrollment request #60

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

julianramirez2
Copy link
Contributor

Description

This small adjustment in the code makes an error that only appeared in a Local execution of the code disappear. Before, when creating a new Enrollment Request manually, a message appeared at the top of the form saying that the Enrollment Action variable was not defined this happened because, in fact, in a new post, there was no enrollment action and we were not checking whether this action was set or not to assign it to an empty variable.

Testing instructions

Run the project locally and create a new Enrollment Request.

Checklist for Merge

  • [] Tested in a remote environment N/A
  • Updated documentation N/A
  • Rebased master/main N/A
  • Squashed commits N/A

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Nov 8, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @julianramirez2! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@MaferMazu MaferMazu force-pushed the undefined-enrollment-action branch from 5e99614 to b6cdd83 Compare November 8, 2023 21:48
@MaferMazu MaferMazu self-requested a review November 8, 2023 21:48
Copy link
Contributor

@MaferMazu MaferMazu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR @julianramirez2, this fixes the warning creating a new enrollment.

Screenshot from 2023-11-07 18-59-38
Screenshot of the bug

image
Screenshot with this fix

@MaferMazu MaferMazu merged commit 902882e into openedx:main Nov 8, 2023
4 checks passed
@openedx-webhooks
Copy link

@julianramirez2 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants